//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08

//Here is the ALU Source control
`define RTYPE 4'b1111

module ALUsrc_ctr(ALUopcode,funct,control);
	input [3:0] ALUopcode;
	input [5:0] funct;
	output [3:0]control;
	reg [3:0]control;

always @(ALUopcode or funct) begin
	if(ALUopcode==`RTYPE) begin
	  control=funct[3:0];
	end else begin
	  control=ALUopcode;
	end
end

endmodule